package com.enterprise.service.impl;

import com.enterprise.dao.RoleDao;
import com.enterprise.dao.ServersManage;
import com.enterprise.entity.Role;
import com.enterprise.entity.page.PageModel;
import com.enterprise.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("roleService")
public class RoleServiceImpl extends ServersManage<Role, RoleDao> implements RoleService {

	@Resource(name="roleDao")
	@Override
	public void setDao(RoleDao roleDao) {
		this.dao = roleDao;
	}

	@Override
	public PageModel selectPowerPageList(Role role) {
		return this.dao.selectPowerPageList(role);
	}
}
